/**
 * 
 */

module.exports = function(mod, name) {

	mod.controller(name, ['$scope', 'topListService', '$http', '$timeout', '$routeParams', function($scope, topListService, $http, $timeout, $routeParams) {
		$scope.parseTopListService = topListService;

		$scope.parseTopListService.angularCallAjax('get', '/api/parser/entry', {
			pageno: 1
		}, function(data, status) {
			if (data.status === true) {
				$scope.parseListNums = data.data;
				console.log($scope.parseListNums)
			}
		});

		//sparser详细查询
		//console.log($routeParams);
		$scope.parseTopListService.angularCallAjax('get', '/api/parser/qbyid', {
			id: $routeParams.id
		}, function(data, status) {
			if (data.status === true) {
				$scope.parseListArrays = data.data[0];
				console.log("$scope.parseListArrays");
			}
		});

		$scope.title = "域名编辑";
	}]);
}